package com.maoyan.quickdevelop.system.service.Impl;

import com.maoyan.quickdevelop.common.core.domain.dqroom.DqRoom;
import com.maoyan.quickdevelop.system.mapper.dqroom.DqRoomMapper;
import com.maoyan.quickdevelop.system.service.IDqRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class IDqRoomServiceImpl implements IDqRoomService {

  @Autowired
  private DqRoomMapper dqRoomMapper;
  @Override
  public List<DqRoom> selectDqRooms() {
    List<DqRoom> dqRooms = dqRoomMapper.selectList(null);
    return dqRooms;
  }

  @Override
  public List<String> selectAllDqRoomNumberByRoomId(Long roomId) {
    List<String> strings = dqRoomMapper.selectAllDqRoomNumberByRoomId(roomId);
    return strings;
  }
}
